<%@page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>超市订单管理系统</title>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css" />
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/public.css" />
</head>
<body>
     <div class="location">
         <strong>你现在所在的位置是:</strong>
         <span>订单管理页面 >> 信息查看</span>
     </div>
     <div class="${updateClass }">${updateMsg }</div>
     <div class="providerView">
         <p><strong>订单编号：</strong><span>${billInfo.idName }</span></p>
         <p><strong>商品名称：</strong><span>${billInfo.name }</span></p>
         <p><strong>总金额：</strong><span>${billInfo.money }</span></p>
         <p><strong>供应商：</strong><span>${billInfo.provider }</span></p>
         <p><strong>是否付款：</strong><span>${billInfo.state==1?'已付款':'未付款' }</span> </p>
         <div class="providerAddBtn">
          	 <input type="button" id="update" value="修改" >
             <input type="button" id="back" name="back" value="返回" >
         </div>
     </div>
</body>

<!-- 保存当前页的后台路径和参数 -->
<c:set var="urlLoading" value="${pageContext.request.contextPath}/bill/orderDetail" scope="session"></c:set>
<c:set var="paramLoading" value="id=${billInfo.id }&page=orderDetail.jsp" scope="session"></c:set>

<script type="text/javascript">
$(".providerAddBtn :button[value='修改']").bind("click", function() {
	toJump("${pageContext.request.contextPath}/bill/orderUpdate", null, "#mainframe");
});

$(".providerAddBtn :button[value='返回']").bind("click", function() {
	toJump("${pageContext.request.contextPath}/bill/query", 
			"curr=${paBill.curr}", "#mainframe");
});
</script>
</html>